# 随机生成字符串

import string
import random

s = string.ascii_letters + string.digits
print("获取到的大写字母、小写字母和数字:" + s)
print("s的数据类型是:" + str(type(s)))
print('*' * 30)

number = random.sample(s, 15)
print("生成的列表是:" + str(number))
print("number数据类型是:" + str(type(number)))
print('*' * 30)

numbers = ''.join(number)
print("拼接列表中的元素，变成字符串:" + numbers)
print("拼接好的字符串的数据类型是:" + str(type(numbers)))

print("numbers的长度是:{0}".format(len(numbers)))
print('*' * 30)


